package main;

import TreeNode.Solution;
import TreeNode.TreeNode;

public class Main {
	public static void main(String[] args) {
		TreeNode root = new TreeNode(1);
		root.right = new TreeNode(2);
		root.right.left = new TreeNode(3);
		root.right.left.left = new TreeNode(4);
		root.right.left.right = new TreeNode(5);
		root.right.left.left.right = new TreeNode(6);
		Solution solution = new Solution();
		System.out.println(solution.preorder(root));
	}
}
